package com.kuang.demo.controller;

import com.kuang.demo.bean.BaseRespVo;
import com.kuang.demo.bo.zzy.Role.ValueLabel;
import com.kuang.demo.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/admin/role")
public class RoleController {
    @Autowired
    RoleService roleService;

    @RequestMapping("/options")
    public BaseRespVo zzy1(){
        List<ValueLabel> labels = roleService.selectAllRole();

        return BaseRespVo.ok(labels);
    }
}
